home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Clock / Sources / Dialog.fr < prev    next >
Encoding:
Text File  |  1996-09-17  |  2.9 KB  |  110 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //    File:                Dialog.fr
  3. //    Release Version:    $ ODF 2 $
  4. //
  5. //    Contains:            Resources defining the ODFClock part's dialogs
  6. //
  7. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  8. //========================================================================================
  9.  
  10. #ifndef FWRESFIL_K
  11. #include "FWResFil.k"
  12. #endif
  13.  
  14. #ifndef FWVIEWS_FR
  15. #include "FWViews.fr"
  16. #endif
  17.  
  18. #ifndef FWNOTDEF_H
  19. #include "FWNotDef.h"     
  20. #endif
  21.  
  22. #ifndef DEFINES_K
  23. #include "Defines.k"
  24. #endif
  25.  
  26. //----------------------------------------------------------------------------
  27. //    Strings for clock settings
  28. //----------------------------------------------------------------------------
  29. resource FW_kMULTISTRING (kClockStrings)
  30. {
  31.     kOffsetErrorString, "Offset must be between -23 and 23";
  32.     kClockSettingsTitleString, "ODFClock Settings";
  33. }
  34.  
  35. //========================================================================================
  36. // resource RFormFrame(kClockSettingsDialog)
  37. //========================================================================================
  38. // See constants in "FWViews.k", macros & resource types in "FWViews.fr"
  39.  
  40. resource FW_RFrameLayout(kClockSettingsDialog)
  41. {
  42.     {FW_FIX(320),FW_FIX(130)},        // Layout Size - HV
  43.     
  44.     {                        // Start list of frame's subviews
  45.         FW_RStaticText
  46.         (
  47.             0,                            // view id
  48.             FW_BOUNDS(10, 20, 210, 40),    // LTRB
  49.             FW_kFixedBounds,            // binding
  50.             FW_NORMAL_FONT,
  51.             FW_RGB_WHITE,
  52.             "Hours to offset time:"            
  53.         ),
  54.         FW_REditView                    // edit view to enter string
  55.         (
  56.             kTimeOffsetViewID,            // view id
  57.             FW_BOUNDS(220, 20, 310, 40),
  58.             FW_kFixedBounds,            // binding
  59.             4,                            // max chars
  60.             9,                            // attributes
  61.             FW_NORMAL_FONT, 
  62.             "0"                            // initial text
  63.         ), 
  64.         FW_RStaticText
  65.         (
  66.             0,                            // view id
  67.             FW_BOUNDS(10, 60, 210, 80),
  68.             FW_kFixedBounds,            // binding
  69.             FW_NORMAL_FONT,
  70.             FW_RGB_WHITE,
  71.             "String to draw on clock face:"            
  72.         ),
  73.         FW_REditView                    // edit view to enter string
  74.         (
  75.             kFaceStringViewID,            // view id
  76.             FW_BOUNDS(220, 60, 310, 80),
  77.             FW_kFixedBounds,            // binding
  78.             16,                            // max chars
  79.             9,                            // attributes
  80.             FW_NORMAL_FONT, 
  81.             "ODF"                        // initial text
  82.         ), 
  83.         FW_RButton
  84.         (
  85.             kClockOKButtonID,            // view id
  86.             FW_BOUNDS(185, 97, 265, 125),
  87.             FW_kFixedBounds,            // binding
  88.             FW_kDefaultButtonMsg,        // "OK" message
  89.             0,                            // receiver = dialogFrame by default
  90.             0,                            // control value
  91.             FW_kDefaultPushButton,        // button kind (with outline)
  92.             FW_SYSTEM_FONT,
  93.             "OK"            
  94.         ), 
  95.         FW_RButton
  96.         (
  97.             kCancelButtonID,            // view id
  98.             FW_BOUNDS(55, 100, 135, 122),
  99.             FW_kFixedBounds,            // binding
  100.             FW_kCancelButtonMsg,        // "Cancel" message
  101.             0,                            // receiver = dialogFrame by default
  102.             0,                            // control value
  103.             FW_kPushButton,                // button kind (no outline)
  104.             FW_SYSTEM_FONT,
  105.             "Cancel"            
  106.         )
  107.     },                        // End list of frame's subviews
  108.     { }                        // no scroller
  109. };
  110.